package com.caine.annotation;

import java.lang.annotation.Annotation;

/**
 * @Author: CaineZhu
 * @Description:
 * @Date: Created in 17:37 2020/11/5
 * @Modified By:注解可以被继承(注解需要@Inherited 抽象类也可以)但是不能被接口的实现类继承
 */
public class AbsTestAImpl extends AbsTestA{
    @Override
    public void do1() {
        System.out.println("do1...");
    }

    public static void main(String[] args) {
        for (Annotation annotation : AbsTestAImpl.class.getAnnotations()) {
            System.out.println("annotation = " + annotation);
        }
    }
}
